HPCC-12285 Fix set index ranges

Signed-off-by: JamieNoss <james.noss@lexisnexis.com>
Shouldn't link length

Better is
    OwnedHqlExpr length = ...
   ... createComma(length.getClear(), LINK(from));