clean up equals/hashcode for Interval (Coverity)