Memory slab stats

This bases on and improves #560. It's also rebased on current master, and skips the commit which got reverted in #560.
Doesn't this need to handle the case where we're doing mem_slab_reclaimable and mem_slab_unreclaimable instead of mem_slab_total?