[WIP] Efficient get_dim_size for arbitrary dimension

This implements an efficient method get_dim_size(i) to get the dimension of an individual dimension, as discussed at https://github.com/ContinuumIO/libdynd/issues/78