HPCC-12285 Fix set index ranges

Signed-off-by: JamieNoss <james.noss@lexisnexis.com>
By convention we don't normally call .get() unless necessary, relying on the default cast operator.