change for condition to inner if in add of arrays fixes #104

The assignment in the condition part of the for loop skipped all elements after the first falsy one. Added test and moved the check to inner if.