make Filter iterator composable by calling done and next once per item

fixes #6943
Merge branch 'master' of https://github.com/JuliaLang/julia