Clear visitedCollections

Visited collections are cleared only in commit(). Commit clears up only if it actually has something to do. Processing large amounts of records without changing them cause visitedCollections to grow without any way of clearing.
Check owning entitiy on extra lazy get with OneToMany relation
Remove extra-lazy-get for ManyToMany relation
Merge pull request #710 from sandermarechal/extra-lazy-get-fix

Fix extra lazy get
Merge pull request #703 from shulcsm/patch-1

Clear visitedCollections