Fix comparison of relativedeltas (min/max value)

Relativedeltas don't support comparison on their own.