first working arrays processing; NOT generic! Need to abstract into dialect.