Fixed some bvec issues reported by Sumit.

Also added another set of class hierarchy to the CstVecPrim. This is the
initial code required for supporting randomization of arrays.