x86 jit and vertex jit changes, ARM emitter changes

Extracted out the x86 changes (which I've tested in some games and @solarmystic had tested in others), and some ARM emitter fixes which are relatively straight forward.  #5687 is clearly too long.

-[Unknown]