Ticket #5774: Properly handle "typename..." in template parameter list.
Merge pull request #302 from simartin/ticket_5774

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