gtpython: many type declaration fixes