JIT64: various integer optimizations

This is basically an amalgamation of a lot of various integer optimizations, along with refactoring of branch merging and optimization of carry flags (the latter of which is a prerequisite for my carry optimization branch).