Fix const qualified ranges with map/filter