Reintroducing basic bytecode optimizations to stash classes and such.

Performance is still noticeably worse than the current master on Rhino in V8. Will need to profile again and see what's going on now.

Also, I should make the stashing a bit less hacky...