Fix for Mantis #26482.

pgenutil.pas, generate_specialization:
  * also search for the generic type in general if it was previously found in a record/class as there might be a non-generic type (or one with a different number of parameters) defined elsewhere

+ added test


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