Add a unique-elements rule.