ntt: Run nir_opt_find_array_copies only once
Most drivers seem to do the same, and it also avoids an endless optimization loop with piglit on virgl
arb_gpu_shader_fp64@execution@fs-function-inout-array
In addition, get rid of the var copies.
Edited by Gert Wollny