Fix Failure on Rubinius

Since Rubinius does not have rb_num2ushort, I replaced it with rb_num2uint.