HPCC-10921 Fix HASH/HASH64 on constant strings

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