HPCC-9707 Ensure scalar and set datasets are always hoisted

Has quite a big effect on a few complex archived examples.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>