reverted erroneous patch in array_sum()