Provides handling of ndarrays in SparseConstantValue

Adds appropriate handling of ndarrays in SparseConstantType parameters