Improve batch handling
Add tests
Update test
Merge pull request #843 from querydsl/i834

Improve batch handling