Fixed EmbeddedDocument with ReferenceField equality issue (#502)