more cache.pack tests
const correctness
fix #65