added the serializer name, as C++ has no easy equivalent of instanceof