Fix for Mantis #26176. Don't handle "type helper" as unique.

ptype.pas:
  * read_named_type: change hadtypetoken from a value to a var parameter and set it to false if a type helper is parsed so that calling code does not handle it as unique
  * read_anon_type: handle that hadtypetoken is now a var parameter

pgenutil.pas, generate_specialization:
  * handle that hadtypetoken of read_named_type is now a var parameter

+ added test

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@27870 3ad0048d-3df7-0310-abae-a5850022a9f2