Generic arithmetic on vectors