Simplify the type() method of GlobalScopeExpression