HHH-4910 The collection cache is evicted if a related collection element is inserted, removed or updated

HHH-4910 minor fixes

HHH-4910 make this feature configurable
HHH-4910 docs, javadocs, formatting, minor refactoring