allow T[range,range...], for #2979
this serves as a backwards-compatible improvement of the current behavior
Merge branch 'master' of github.com:JuliaLang/julia