Improved tests for ClassDefinitionResolver
Improved tests for ArrayDefinitionSource and fixed bug