Add missing import for limits to JSON generator
Fix GLib issues