Remove the callback (cb) debug mechanism

This form made the dump more informative, but was awkward to use and
error-prone. Fortunately, we can get the same quality of information if we use
reflection and plain functions. The cb functions still remain to avoid risky
refactoring, but now just generate plain function definitions and invocations.