Moved the Interval and Range type to a separate module.