Fixed serialize/deserialze for vect<int,class>.