Clean up range.c. Use mrb_int. Use mrb_vtype.

This is not a bug fix but enhancement for consistency.