HPCC-0000 WIP fix the workunit iterators broken by prior commits

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>