writeJumps
It is unlikely that we will emit a script with a JMP in the end, but `writeJumps` must work correctly even in such case.
Convert long jumps to short ones if the offset can be represented in a single byte. Close #805.