Improve crc32-based getValueHash method to work better on 32 and 64 bit machines.