typo fixes
fix element-sum for NDArray 3+ dimension case