Convert vector functions to methods, part 3 (and internal iterators to external)

The last remaining internal iterator in `vec` is `each_permutation`.