fix Issue 9514 - "template instance … is not an alias"
Merge pull request #1665 from 9rnsr/fix9514

Issue 9514 - "template instance … is not an alias"