fix signature introspection for functions with kwonly arguments