gi: support (out caller-allocates) for boxed object

[ruby-gnome2-devel-ja]

Reported by Kentaro Fukuchi. Thanks!!!