make sure allocate() types have the same length as the slab