need to initialize new gc root in jl_compute_type_union

(cherry picked from commit 3834eeb820a355b307a78d8c25573a1e7baf91ee)
Ref #8819