fix compilation errors
fix long vs long long bugs

these bugs were introduced by "fix long/int confusions in pyx version of
unpack" commit.
more tests
Merge pull request #66 from yamt/fixes

some fixes and tests