Produce correct output for zero-length arrays