HPCC-11119 Fix some warnings in the generated code

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