Revert "Fix object::GetType when remoting is enabled."

This reverts commit 93e2d1dc48339be472300910e9290939ee253177.