fixed a bug in array_parallel_impl that somehow passed gcc but stumped clang.