Fixed hashing of EmbeddedDocuments (#348)