GCD avoids to produce expanded expressions (Alexei's patch).