support for compilation of vector sums