only call next() once per iteration in Enumerate. fixes #6284

this definition is now inlined too.
Merge branch 'master' of github.com:JuliaLang/julia