Support for class-level validation

This allows for

    $errorElement->addConstraint(new UniqueEntity(['fields' => 'email']));

and similar code without an enclosing ->with().