fix bounds bug in getindex(a:b, c:d) with c<1

Ex: `(3:6)[0:1] == 2:3`.

I'm not particularly proud of the `check_indexingrange` function name, ideas welcome.