std: add an external iterator for mutating vec elements
auto merge of #6964 : huonw/rust/vec-mut-iter, r=thestinger