Statement test

Enable the StatementTest. This uncovered both the JDBC driver re-write of a number of functions to PostgreSQL internals. This is now disabled for the sql-layer and it sees the function calls directly. 

The StatementTest also uncovered three new bugs in the SQL-layer function calls. These bugs are in Trello, and disabled here by altering the tests. 

This is 1 of 6 updates to the sql-layer-jdbc tests