gentypes: fixed instance/class init handlers