HPCC-0000 Memory leak, and cleaner fix for missing tuple issue

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-0000 Add namedtuple support

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