Support for class-level validation

This allows for

    $errorElement->addConstraint(new UniqueEntity(['fields' => 'email']));

and similar code without an enclosing ->with().
Merge pull request #1306 from luzat/classvalidation-master

Support for class-level validation