These functions do the expected thing when passed an RObject.
i1 : x = RObject {1, 3, 5} o1 = [1] 1 3 5 o1 : RObject of type integer
i2 : max x o2 = [1] 5 o2 : RObject of type integer
i3 : min x o3 = [1] 1 o3 : RObject of type integer