The attached test case produces a ClassCastException when run (mvn test) with enhancement enabled. It runs fine without.
The exception seems to only occur in these particular circumstances:
the entity uses a PreUpdate-hook
the entity has a Version-column
one collection is created before persist, another one after persist
Unfortunately I was not able to narrow it down further.