Fix deepcopy issue with Sympy 1.9

13 jobs for sympy19 in 17 minutes and 5 seconds (queued for 3 seconds)