Added check for simple types inside arrays