Add failing test showing database error raised when attempting to write empty arrays.
Fix empty array problem by using Postgres's array literal syntax for empty arrays