Improve debug info.

Name root and leaves when requesting debug info.
Catch and explain class "exception" before ... case in --validate.