[IMP] orm: fix and generalize method resolve_o2m_commands_to_record_dicts (now named...