Introduce AbstractSparseArray. Close #6213.