[cpp] do not omit generation for KGeneric classes by default (see #2016)