correctly parse boolean values and their defaults