Fix for Mantis #25915.

* ptype.pas, id_type:
    generate the "identifier not found" message only if the identifier was really not found and not when the identifier is a non-type
* pexpr.pas, statement_syssym: 
    don't generate the "type id expected" error message for Default() anymore; this is already handled by single_type

+ added test (though this again will not help much as output is not parsed...)

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