Gets an unsigned integer from a variant, handling both 'u' and 'i' types.
a Variant
integer, or 0 if not valid