Switched 'typeOf' to use 'Proxy'. Fixed warnings.