Fix simplify for simple domains ['AND'], ['OR']

issue3955
review9411002
(grafted from 90b6308d43a17fc9f0d775a48670277d25162abc)

--HG--
branch : 2.4
extra : source : 90b6308d43a17fc9f0d775a48670277d25162abc
Quote doublequote characters when copying records to clipboard

issue3972
review6341002
(grafted from 52b6005d779a4a7c07291fb6f7628ee8d8c5263e)

--HG--
branch : 2.4
extra : source : 52b6005d779a4a7c07291fb6f7628ee8d8c5263e