Fix for lp:1294983. Added test for bools_are_tristate when processing ru...

...les for bool fields.