fix infinite recursion if a global's initializer references the global