Issue 8997 - template instances omit symbol that may be used in other modules

http://d.puremagic.com/issues/show_bug.cgi?id=8997

Add AA template instance implementation into the first  module in command line, instead of the first module the AA type found.