Read uncompressed package size from header.

* Add support for parsing 32-bit integers in Entry
* Refactor entry with just a little bit of metaprogramming to make it less
  cluttered.