HPCC-12285 Fix set index ranges

Signed-off-by: JamieNoss <james.noss@lexisnexis.com>
Have you tested 

x := [];

x[1..]

(I'm not sure if it compiles, but if it does this line will crash.)