Added support for kwds in funcproto_type