ipythonblocks: Generalize BlockGrid.__iter__ to N dimensions