Add a deserializer and serializer for SparseArray.