Refactor `ArrayParser`

* Constantize parse token
* Remove extra param passed to `parse_data`
Merge pull request #11606 from vipulnsward/refactor_array_parser

Refactor `ArrayParser`