compiler, rtl, tests: write Delphi compatible (more or less) type information for Class Reference and Pointer types (mantis #0024367)

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