use template type instead of template symbol

bacause template is not a symbol but a type.  symbol can know itself
is template via its type.