update trig function support.

Fixes atan2, adds more opcodes that map to builtins, and some that require new function wrappers.

Add tests for all the trig ops.

Includes a commit covered in "run tests on windows" - apply that one first, I guess?