fix large and empty StepRanges. fixes #6353

I think this works, but I will try to make it faster in a future commit.
Merge branch 'master' of github.com:JuliaLang/julia