Issue 12392 - No attribute inference if first template instantiation uses `alias`

https://d.puremagic.com/issues/show_bug.cgi?id=12392