HPCC-9790 Use a hash table to quickly resolve expressions

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>