Fixed bug where the wrong type was used when serializing entityMetadata
Merge pull request #48 from mappum/master

Fixed bug where the wrong type was used when serializing entityMetadata