polys: Added dtype to PolyElement and FracElement
polys: Added compatibility APIs for gf_* functions
polys: Return solutions of proper type from solve_lin_sys()
polys: Convert symbolic trees to PolyElement and FracElement
polys: Fixed poly/term and poly/const and added tests