Better disambiguate nested functions and dynamically-generated functions
Merge pull request #457 from pitrou/qualname-disambiguate

Slightly improve the qualified name disambiguation logic