fix json_to_record in mochijson2