Fixed a bunch of issues with various packed types and their tests.