Complex value serialization