Refactoring DateTimeRangeCollection for simplicity and to fix bugs.