hash: add explicit u32 and u64 versions of hash