HPCC-8898 #EXPORT not handling decimal types correctly

The code for outputting basic type when exporting records to XML is weird.

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