[Form] Add getErrorsAsArray method

Usefull to return form errors through JsonResponse
	modified:   src/Symfony/Component/Form/Form.php
	modified:   src/Symfony/Component/Form/Tests/CompoundFormTest.php
	modified:   src/Symfony/Component/Form/Tests/SimpleFormTest.php