Ticket #5774: Properly handle "typename..." in template parameter list.

Hi,

This ticket is another fallout of my fix for ticket #5605 (thanks to matthiaskrgr for the report and to amai for pointing me to it!), that is fixed by skipping "typename..." in TemplateSimplifier::templateParameters. Thanks to consider merging.

Cheers,
  Simon