pack: don't forget to cache the base object

The base object is a good cache candidate, so we shouldn't forget to add
it to the cache.