Generates array tuples from input arrays.