Use a more sensible `hashInteger` implementation

This makes `hashInteger` behave the same way as `integer-gmp`s
`hashInteger`.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>