FlattenGlobals: If running this pass twice on the same module, it is likely that
we will trip on add constant expressions that we created in the first pass. This
commit simply adds code to ignore such instances.