src/nnet2: Fixed bug in class constructor that did not resize Vector before using