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