weakproxy fixes (#2450)
weakproxy fixes (#2450)

* The callback argument to ref() and proxy() is optional, per documentation
* proxy() returns a ProxyType or CallableProxyType

Closes #1627

euresti/typeshed