MRI: use RB_TYPE_P() instead of rb_type()

Just a very small optimization.