fixed handling of custom serializer classes in json decorator