Finish array sum simplification