BUG: fix hashing of long integers under python3

python3 long_hash is more complex than its int_hash so instead of
copying into numpy call it via the Python capi.
Same for long long for wich the numpy hash function is not correct with
python 2.7 on i386.