[GMR] Be a bit smarter about which globals don't alias when doing recursive lookups