[do not merge] fix issue 10329 - Attributes not inferred for indirectly templated methods

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