generator: do not set is_static if category_extension_type is not null, instead handle category_extension_type-related issues on their own