added raveling logic to lower_array_operators