jl_is_leaf_type static eval take 2
Merge pull request #7093 from carnaval/master

jl_is_leaf_type static eval take 2