HPCC-9094 Ensure space is allocated for the length of a child dataset

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge branch 'issue9094' into candidate-3.10.x

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