[std] Fix unsigned behavior in some UInt ops
Merge pull request #2756 from Herschel/uint

[std] Fix unsigned behavior in some UInt ops