Revert "Simplify array parsing by using CSV parser."

This reverts commit fbb5128d666a98fa9b9b9e6659bf3f045fbf4d44.