HPCC-10000 Ensure hash values are converted to integers

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