fixed: validation always passing when type is an array containing several types