Adding BoolRef class that represents a reference to a boolean. Adding its test.