Merge pull request #1162 from lambday/develop

addded unit-tests for serialization
added more unit-tests serialization for ptype for xml, hdf5