do not generate RTInfo for deprecated types and _error_ types
Merge pull request #1785 from rainers/rtinfo_on_deprecated

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