chg: r_IsRingVar (extensions may not be singular rings, but uuse coeffs interface)
chg: factory/libfac is not optional, removing HAVE_FACTORY/HAVE_LIBFAC
fix: gcc optimizer bug: need local number variable
flint stuff: move optional parts to the end in coeffs