Add assert for invalid outerIndexPtr array in SparseMapBase.
The outer index array must have size equal to outerSize + 1, with the
last element being the size of the valuePtr array.
Fixes ##2561 (closed).
The outer index array must have size equal to outerSize + 1, with the
last element being the size of the valuePtr array.
Fixes ##2561 (closed).