disallow structural extension of type parameters (closes #2365)
remove obsolete special cast handling when inlining (closes #2275)