take variable length input in _fmpq_poly_revert_series