Ticket #4764: properly handle template instantiations with only default parameters.
Merge pull request #158 from simartin/ticket_4764

Ticket #4764: Handle template instantiations with only default parameters