Remove unused imports for UnionTypes codegen. Fixes #2440.
auto merge of #2446 : glennw/servo/issue-2440, r=Ms2ger