add a flatten view to flatten a range of ranges, make transform_view a conforming range