8247: use minpoly in Expr.is_positive|negative

Only attempt this test if self is an algebraic number
with hopes that the test will then be successful and fast.

See issue 8349

Watch for NotImplementedError from minpoly, too.