Fix for long-standing issue with defaulting checkboxes when defaultvalue is 0.