jsapi-util: Evaluate scripts in a new scope if NULL is passed for object

And make the gjs_context_eval (and more importantly, the console) execute
the main function in a new scope, rather than the global scope.