Avoid reaching out to numeric in global namespace in compiled code.

This replaces calls to javascript's `Function()` with calls to the new `numeric.compile()`, which is a wrapper that closures in the numeric object so that methods on it can be used inside compiled code. The motivation here is to allow using numeric without globally exporting the `numeric` symbol.

Done in collaboration with @ehberger.