Fix lower bound check in REQUIRE_UINT

If it's first casted to uint it will always be >=0. Also
the test failed on a value == 0, while that should be ok.