Add index labels in summaries

For variables above 1d, label each group of rows in the summary with the
corresponding NumPy index.