stackDim function

Get/set name/index of (non)stacking dimensions