Fix a few issues in the sygus sampler related to evaluation (#2215)