Only import the imports we need in generated code, and add specialization for other types that we are currently generating code for.