more debugging of array flattening