Now size() returns the total number of elements, and sizes() returns an N-dimensional vector containing each size separately.