HPCC-9640 Optimize NORMALIZE(ds, 0) and NORMALIZE(ds, 1)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>