Fixing Tensor accessors

Updated Tensor::range(size_t d) to work with latest Range interface.
Added method RangeNd::extent(size_t) needed by Tensor::extent(size_t)