Rearrange dump.c to organize docs. Add some perlapi docs for debug methods.