improve apply_type t-function to handle non-type type parameters
Merge branch 'master' of github.com:JuliaLang/julia