another fix for overwritten embed_in_root objects, still need to write test
Merge pull request #1 from NextFaze/feature/duplicate_keys_521

another fix for overwritten embed_in_root objects