lazily evaluate ident
Merge pull request #2187 from WalterBright/lazyIdent2

Generate ident's for TemplateInstance's lazily