fix issue 9782: do not generate RTInfo for deprecated types and _error_ types

The behaveour is a bit strange for deprecated types:
- if deprecated stuff is disallowed, no error or warning
- if deprecated stuff is allowed, no error or warning
- if warnings only are enabled (the default), the deprecation warning is shown even if the type seems never to be used (but actually is in the TypeInfo generation).