Consistent varargs specialization in stagedfunctions (fix #8944)
Move stagedfunction tests earlier

These are about to become part of fairly low-level infrastructure,
so it's best to run them early.
Merge pull request #8960 from JuliaLang/teh/staged_cache

Consistent varargs specialization in stagedfunctions (fix #8944)