Construct a new PGArray.
Construct a new PGDialect.
We need accurate rowcounts for updates, inserts and deletes.
psycopg2 is not nice enough to produce this correctly for an executemany, so we do our own executemany here.