Validate all arrays

Check for correct data structure when the defined resource expects an array as input.