Re-arranged some of the `when doIterRangeChecks:` code, before making further changes.
Re-arranged some of the `when doIterRangeChecks:` code, before making further changes.

jboy/nim-pymod,jboy/nim-pymod,jboy/nim-pymod,jboy/nim-pymod