fix gtype inout changing the in-type