[enh] Issue 7511 - attribute inference does not work for methods of templated aggregates

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