fix serialization of non-dirty embedded relationships