Convert ext/standard/math to HNI

All changes and deletions to the tests came from running the import script again. It looks like the deletions are all because of a 32bit check.

Part of #1480