factor_list: divide out content before factoring
Merge pull request #2484 from katjasophie/factor_frac_field

factor_list: fix factorization of polynomials over polynomial rings or fraction fields