Optimize the PostgreSQL array parser using a strscan implementation

This speeds the parser up another 5x compared to previous each_char
implementation, at least for arrays with a small number of large
entries.

In combination with the recent previous commits to the parser, it
is now about 1000x faster for parsing an array with a single
100,000 UTF-8 character string.