Signed integers

Turns out that `hash_fp` isn't exactly usable from Python without this change.