Fix negative integer problem at unpack phase. Fixes #8