HPCC-9252 Fix issues found with huge allocators

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