Fixed problem related to use of boolean values in BAD formula. (A
boolean value may now be used in formula, after calling toDouuble(),
which returns 0 or 1 for a boolean.)