Refactored equivalence checking in Date/TimePair and DateTimeSequence.