Added ability to test numeric constants to internal 'if'-helper

Changed the internal 'if' helper such that it can test not only paths and/or variable names, but also numeric constants.

This will be helpful for subexpressions later, when testing numeric subexpressions return values,

eg: {{#if (eq 0 (mod @index 3))}}

Also added a test for this.