Fix a bunch of bugs discovered through RRULE expansion issues.