should be allowed to pass in a ProxyType when specifying the proxyType field to a new Proxy object

Fixes Issue #6513