when comparing bytecode results, only use the topelevel mapping for toplevel references. localrefs should be checked normally (AFAICT)