Right, automatic type restriction is a relatively new feature in ClearScript, designed to facilitate access to esoteric .NET APIs. We agree that for simple APIs that rely on polymorphism, turning it off may make sense. Maybe we'll add a flag for that, but in the meantime, your
IsRestrictedForScript
patch should be perfectly safe.