Passing NULL here seems ok here as the TemplateInstance ignores the argument and uses the remembered scope of the TemplateDeclaration. If this is used more generally (at least wherever importedFrom is currently used) the actual scope might need to be rebuilt or cached.