MT#8261 allow zero in number ranges

(cherry picked from commit bdd40e8449fc39db1230ae8142eb7d04a4b9227b)
MT#8261 fix evaluation zero to false

(cherry picked from commit 3d964e6b75faeb923de5bd5529097f894590a0cf)