HPCC-11721 Remove maxlength dependency in the field mapping code

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