Add type erasure of ranges.