estimate_capacity, dbg for every type, cache now supports more types (but even more fixes are waiting).