Add Math polyfill

This implements the new ES6 Math functions.

The implementation is based on V8 and MDN as well as the spec.

The tests are mostly just smoke tests. I'm not testing a lot of
edge cases.
This test didn't smoke out the typo, but then it possible that all paths in the polyfill implicitly run toUint32().