Introduce WeightVec

Different from the weighted arrays introduced previously, this is a shallow wrapper for the purpose of indicating a parameter as weight vector and maintaing the sum of weights.