Ticket #5816: Properly handle template'd template parameters in enum initializers.
Merge pull request #314 from simartin/ticket_5816_2

Ticket #5816: Properly handle template'd template parameters in enum initializers