Prepared statement tests and fixes
Fix Valgrind errors

Fixes libattachsql/libattachsql#109
Merge pull request #108 from LinuxJedi/statement_tests

Prepared statement tests and fixes