fix #39 #40 serializing EmbeddedDocument