First non-singleton dimension
fnsd.RdGiven an array, returns the first non-singleton dimension. Useful for emulating some of Matlab / Octave's multidimensional functions.
If n is supplied, return the first n nonsingleton dimensions.
Note
Treats zero-extent dimensions as singletons.
Case n=0 now treated sensibly (returns a zero-length vector).