Optimizations and general bytecode generation improvements.