Added orphan Functor instance for Ref