Be tolerant to variations of integer data types

We will accept any kind of integer where we expect uint32 provided that its value falls into [0..UINT_MAX] range.