fixed several bugs that occur when evaluating Laurent polynomials with
arbitrary precision arithmetic