Ticket #6181: Properly handle >> terminating template parameter lists.

Hi,

This ticket is to to the fact that simplifyTemplateInstantiations did not support template lists ending with >> (C++11), which is fixed by this patch. Thanks to consider merging.

Cheers,
  Simon