Also, json_object_set_serializer is changed to respect the userdata and user_delete parameters when to_string_func is NULL.
The user might want to use the userdata for something different, so the serializer should ignore it by default. Explicitly setting the serializer to json_object_double_to_json_string will still make it interpret the userdata as a format string.
It is needed for size_t.