fix exception
fix zigzag64
compatible with official implementation of int32
test cases
less explicit conversion
test and benchmark