Handle larger object sizes in .pack-files

This is really not well tested...