fix chunk iterator, add real test for chunked array labeling