Added automatic serializing/deserializing to mod values.