Copies one vector of ranges to another.
NOTE! You should deallocate the pointer outRanges() after use.
subroutine copyRanges(inRanges, outRanges)
type(RangeT), intent(in) :: inRanges(:)
type(RangeT), pointer :: outRanges(:)
end subroutine copyRanges