Fix generator so that OverrideAttribute is a known attribute for methods

Adding the OverrideAttribute to a method throws "Unknown attribute" BindingException without this fix.