Postgres: added support for resolving arrays, fixes #14