fix Issue 8997 - template instances omit symbol that may be used in other modules
Use sc->module->importedFrom
Merge pull request #1667 from 9rnsr/fix8997

Issue 8997 - template instances omit symbol that may be used in other modules