Generic type serializer.