Fix toUint32

Fixes #1147
I gather it is well-known that all ES5 implementations succeed in producing a `Uint32` from this expression? Should we have a test for this function?