Ticket #5268: Properly detect function heads when in Tokenizer::simplifyEnum

Hi,

This ticket's incomplete simplification of enum values is due to the fix for ticket #3953 not properly detecting function heads (to skip them), which this patch fixes. Thanks to consider merging.

Cheers,
  Simon