glib2: use RUBY_T_HASH

We dropped Ruby 1.8.