Arrays

Sorry for such a large patch. This integrates some of Bas's work on Postgres arrays. The parser and pretty-printer are much expanded.