Change ctor/dtor for slab to use typedef.
Implement top-level kernel() and cpu() for tests.