MRI: use RB_TYPE_P() instead of rb_type()

Nothing important, but I'm currently fixing some issues with `rb_get_args` and I've noticed that almost everywhere `RB_TYPE_P` (which selects the right comparison) can be used instead of `rb_type` (which most probably doesn't).