fix Issue 1659 - template alias parameters are chosen over all but exact matches.
fix Issue 4431 - Template favors alias parameter for struct

http://d.puremagic.com/issues/buglist.cgi?quicksearch=alias+parameter