fix: gcd over integers of two terms ignoring coefficients
Merge pull request #634 from YueRen/gcd_fixes

fix: gcd over integers of two terms ignoring coefficients