Move tree dumping to debug category.  Add dumpAncestors.