id64 bugs

the return result of the function unpackUInt64 is wrong. And the place using unpackInt64 should use unpackUInt64