Add serialization and deserialization for IntegerType.