[model] fixed issue where boolean types will have a weird behavior for default values.