Fix for Mantis #26288. Types declared inside a generic must have the df_generic flag set. Period.

ptype.pas, read_named_type:
  * array_dec & procvar_dec: set df_generic of the array/procvar if parse_generic was originally set

+ added test

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