fix an issue where a global in the inlined ast could be shadowed by a local in the enclosing ast