Allow comparing RObjects.