math: switch the order of template params in math::evaluate(), so we can use the explicit template syntax of the series evaluation method.

Also rework a potentially problematic syntax in a test.