add template_type_symbol for function and class templates

template type variables references the symbol.  it helps to resolve type
of templates