fixed an error introduced by a recent change in PolynomialsFunction (the coefficients array is automatically reduced if high degree coefficients are null)