Dsolve fixes pullable

reopening https://github.com/sympy/sympy/pull/2988, as requested