This patch fixes the condition for determining whether the debug info for a template instantiation will exist in an imported clang module by:
- checking whether the ClassTemplateSpecializationDecl is complete and
- checking that the instantiation was in a module by looking at the first field.
I also added a negative check to make sure that a typedef to a forward-declared template (with the definition outside of the module) is handled correctly.