HPCC-8922 Fix problems casting constant decimals to booleans

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>