Add numerical test if self.is_number in Pow._eval_is_real (fix #7843)

@smichr, @hargup
missing `assert`?