enable check of sympy/sage functions with different names; part of #8585