Fixes #1959 : compare model attribute with value/uncheck options