Attribute::setUnique accepts TRUE as a value for backward compatibility reasons, this should be deprecated so that unicity is alway explicitely set to one or whole and we do not get one while expecting whole.