Is there a defined minimal interface for a type to work with SparseArrays?

This should be fixed in #30580. What is your julia version?