First part of simplifying JVM loop code-gen.

Gets rid of some decision making and, potentially, an instruction or
two per iteration and/or some boxing.