Add copy constructor and assignment operator to BasicSerializer.