GenBCode: cleanup optimizations

Method-level cleanup optimizations.

See individual commit messages.
Factor this out to a `isReturnOp` `op >= Opcodes.IRETURN && op <= Opcodes.RETURN`