in Array::sum ignore undefined elements
allow double modifier, updating tests and logic