Add testing for MATH_ENABLE_UNCOMMON_OPERATIONS.
Fix more duplicately defined symbols when MATH_ENABLE_UNCOMMON_OPERATIONS is #defined.