libcollections: Use iterators instead of old-style loops.
libgetopts: Use iterators instead of old-style loops.
libsyntax: Remove uses of advance.
librustc: Remove uses of advance.
tests: Remove uses of advance.