more fixes for array parsing