HPCC-10971 Modify serialization interfaces to allow more efficient spill

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