These issues are hopefully fixed now in the repository. Tested with Postgres, Sqlite3 and Mysql/InnoDB.