HPCC-12285 Fix set index ranges

Signed-off-by: JamieNoss <james.noss@lexisnexis.com>
Ok, true, I was relying on the fact that the 'rangeOrIndices' production does this already. However, now that this is not directly in hqlgram.y, it should be safe against such things. Though, in this example it will be doing extra unnecessary work. Do you think it would be better to write this directly into the production?