remove 'real' specification when creating sympy symbols.
sympy symbols with 'real' set differently do not hash to the same value (and possibly do not compare equal).
sympy symbols with 'real' set differently do not hash to the same value (and possibly do not compare equal).