Fix boolean type handling.