Issue 9990 - templates with function alias cause forward reference error

http://d.puremagic.com/issues/show_bug.cgi?id=9990