Fix toUint32

Fixes #1147
Yep, covered in great lengths in test262, e.g. S11.7.3_A4_T1, S11.7.3_A4_T3 and S11.7.3_A5.1_T1. :wink: