Enforce Statement.setMaxRows().
Fix a couple of code-generation bugs.