Fix bug 314: move remaining math functions from internal to numext namespace
Fix sparse_basic unit test conflict