Better support for wrapped function signatures in help

This supersedes #6362, with an extra fix to our backported signatures module to handle unbound methods like functions instead of like bound methods.