Fixes for relativedelta in IntervalWidget

Two issuses in IntervalWidget were fixed:

* relativedelta value was incorrectly converted to dict

* relativedelta doesn't support comparison