Added clearBatch() to the releaseStatements() of AbstractBatchImpl in order to prevent batches from rolled back transactions being applied.
Added StatementCacheTest to illustrate the issue.
Added a validator dependency for c3p0 tests since I needed to have the batch semi aborted.