Added Array#collapse_ranges