v3.0: added NumericDVec, minor refactoring