Some minor refactoring of math helpers.
Fixed EDLTest which now uses math::m_pi.