Optimizations and general bytecode generation improvements.
merge