Fixed error on classes_source template which caused a pletora of bugs (silly me).
Another change for functions and methods returning refcounted wxObject childs.
Regenerated source files with fixes.