HPCC-10784 Keyed limits on stepped indexreads can be miscalculated

Fix errors in thor following the Roxie fix in this area.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>