Make the handling of boolean values actually sane.