Fix eval_polyrange() infinite loop on bogus input
Given a mistyped span (for instance 1.$
or 1...$
instead of the
correct 1..$
), eval_polyrange()
hangs forever, looping infinitely.
Fix this by detecting the malformation and reporting the problem.