libcore: add an EnumerateIterator, like Python's `enumerate`.