fix array items are not validated against  when  is an array (#6)