Int64 unpack fixes

Added unit tests to reproduce the issues, as well as fixes.  The unit tests will not pass without a simple fix to BufferCursor that I also submitted.  The unit tests for integers could probably be improved, but this is a reasonable start.