minor docstring fix [skip_ci]
move expand_complex to solve_as_poly
prevent loss of values in subrutine in solve_univariate