Some basic value serialization.