small_vector: implement serialization.