Fix for lp:1294983. Added test for bools_are_tristate when processing rules for bool fields.