PostgreSQL should now be able to insert empty arrays with typecasting. Closes #714