fix #8505, static parameters in staged functions
Merge branch 'master' of github.com:JuliaLang/julia