[GiNaC-list] is_polynomial gives strange results