commit-slab: introduce a macro to define a slab for new type