Fix several off-by-ones in ON GOTO jump table generation