issue #4058: typedef Ref Object; and deprecate it.