Ticket #5625: Simplify constant ternary operator in template parameters.

Hi,

This patch ensures that TemplateSimplifier::templateParameters doest not fail when a ternary operator is used as a template parameter and adjusts Tokenizer::simplifyConstTernaryOp accordingly, which fixes the ticket. Thanks to consider merging.

Cheers,
  Simon