Fix bug in pack/unpack mismatch accounting for padding.  Unit test now work