Fix #7426
Fix #7461
Merge pull request #7460 from JuliaLang/sjk/steprange

Fix #7426, StepRange iteration bug