gi: fix wrong argument index for Ruby objects

Most libraries need to be fixed for the bug such as Gtk.init_check...
Sorry...