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.
Merge pull request #5162 from juliantaylor/scalarmath-merge

MAINT: merge scalarmathmodule into umath module