Improved construction of VectorBase classes.