Allow null value to be passed as classes for API
Add support for Symfony 2.5+ Validator & Legacy Validator