Add support for bare numbers and visit counts in logic.
Make implicit comparisons against zero usable anywhere in logic.