fixed dump to accept zero-length arrays and vectors