test sparse vector serialization