Adds a serializer/deserializer.