Fix handling of [,,,] arrays