bug fixes and cleanups in slab32.c, still something wrong with mag32.c