API Generator: error if array do not have specified type