fix Issue 7511 - attribute inference does not work for methods of templated aggregates
Merge pull request #1676 from 9rnsr/fix7511

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