Add ability to serialize/deserialize values.