Use dat1EncodeSubscript
Use const hdsdim
Store group dims as well as number of dimensions

And change the attribute name for number of dimensions
First attempt at datSlice

Does not yet work with structures.
Rewrite datSize in terms of datShape
Fix comment