Improved value object serialization