fix Issue 10558 - Assertion failure on struct.c:741

A template instance on temlpate argument may not have yet valid `Dsymbol::ident`, so should use `Dsymbol::getIdent()` for hash calculation.