More streamlined hashing for smallish rational types (≤ 64-bits).

This actually provides less gain over the generic real hashing
function than you would think, but it is slightly faster.