Fix redundant refinement lemma in sygus solver (#5399)
This ensures we do manual exclusion of candidate solutions that have counterexamples that are repeated, in particular in the case where the synthesis conjecture has no free variables.
This PR removes special casing for ground synthesis conjectures and fixes the exclusion during the refinement stage of sygus.
This is a prerequisite for updating arithmetic to not eliminate extended operators at expand definitions, which forces this feature to be exercised in a number of regressions.