HPCC-8898 #EXPORT not handling decimal types correctly

The code for outputting basic type when exporting records to XML was weird.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>