[Gen] Optimize finalizer codegen to avoid extra classes.
[Gen] Optimize finalizer codegen to avoid extra classes.

sillsdev/gtk-sharp,sillsdev/gtk-sharp,sillsdev/gtk-sharp,sillsdev/gtk-sharp,sillsdev/gtk-sharp