Type unstability with container generation in JuMP

Can’t you check if this will be the case and then explicitly create an empty and correctly typed JuMP.Containers.SparseAxisArray to use in its place?