This allows giving a range like "5..7". It works in combination with more (including overlapping) ranges or single indices. Fixes #9736 (cherry picked from commit 65769bf8c8352964826bd93e962e1a8fe84815ea)