Fix name on module_expr exception message
Improve the debug output from printdoctree
Handle duplicate module names more gracefully