Test shift immediate optimization
Change peephole optimizations to not modify in place; add peephole debugging prints

Improve, add optimizations needed for test_peephole10.