add static codegen for jl_is_leaf_type and jl_subtype