gi: support gpointer in/out

[ruby-gnome2-devel-ja]

Reported by Takashi Nakajima. Thanks!!!