ruby/caca-display.c: Use UINT2NUM instead of NUM2UINT.

Add tests for these functions.