HPCC-0000 WIP add caching of namedtuple types and scripts

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