Cleanups+fixes for RangeFilter/DateFilter (still incomplete).