Show method docs for Foo() and class docs for Foo

Resolves #960 such that when a top-level class and method exist with the same name,  `show-doc Foo()` returns the method docs and `show-doc Foo` returns the class docs.