Fix for Mantis #23571.

ptype.pas, single_type:
  * if using a message that expects a parameter, provide that parameter...

+ added tests

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