serialization for SimpleIndex (Factories Tensors)