simplify matching of instr sequences and add peephole optimization for consecutive references to first level env