gi: start supporting onwership tranfer for input argument

Struct and Object are only supported for now.