add 'tostring' method on functions and methods that prints their signatures and docstrings. note that it doesn't survive _fun() and _method() tomfoolery