two scoping fixlets

if there is no current_function_scope, don't try to use it
this is needed for raw mode
and, globals should go in file_scope, not current_function_scope