Use inptr_t as the type of ud. Instead of void*.

This is not a bug fix but a deviation proposal.

mrb_state.ud is prepared for the application dependent data.
And some applications may require just  a integer. For example, ID number, array index.
So it's more useful to declare as intptr_t instead of void*, I think.