disallow catching non-generic type parameters (closes #2907)