MAINT: merge scalarmathmodule into umath module

There is no good reason it needs to be its own module.
Also removes the undocumented pymath alter/restore functions.