Use mrb_check_datatype directly to avoid warning.

Fixes a build warning.