simdarray: implement & test partialSum()

refs #613

Signed-off-by: Matthias Kretz <kretz@kde.org>