Use mrb_check_datatype directly to avoid warning.
Merge pull request #1086 from carsonmcdonald/randtypecheckfix

Use mrb_check_datatype directly to avoid warning.