HPCC-12027 Fix $.^ for items in the root module.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #6319 from ghalliday/issue12027

HPCC-12027 Fix $.^ for items in the root module.

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>