Fix incorrect source location info caused by certain optimizations in the bytecode compiler.