libcore: add an EnumerateIterator, like Python's `enumerate`.
auto merge of #5927 : huonw/rust/core-enumerate-iterator, r=thestinger