[DDC-2300] Fix version xml mapping and serialization of ClassMetadata.