Cache pack files as well.

The test suite now works even after a 'git gc' (eg. with pack files) !