IteratorsMD: properly handle 0-dimensional arrays

CC @Jutho