Fix toUint32

Fixes #1147
I thought about this but it is kind of silly to test. This has been in the spec since ES1 and I'm sure it is in test-262 as well.