Added Polynomial.as_term() and Polynomial.as_monomial()