serialization of different value types