Fix bug in truthy/falsy tests for booleans as objects