HPCC-10046 Optimize aggregate on single row datasets

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #4871 from ghalliday/issue10046

HPCC-10046 Optimize aggregate on single row datasets

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10045 Remove invalid error checking from debug builds.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #4874 from ghalliday/issue10045

HPCC-10045 Remove invalid error checking from debug builds. 

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge remote-tracking branch 'origin/closedown-4.0.x'

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