small_vector: a small addition to the serialization test (check that the type of storage is consistent).