Fix for Mantis #25600. 

ptype.pas, read_named_type.array_dec:
  * generate a valid range definition if we are inside a generic and the array bounds are not ordinals (Note: the check for "parse_generic" should be improved to really detect erratic indexes that are not related to generics in any way)

+ added test

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