[BUGFIX] Support Doctrine Collections in PersistenceQueryRewriting

Security's PersistenceQueryRewritingAspect now supports also Doctrine
collection handling rather than only primitive arrays for ``in``, ``contains``
and ``matches`` operators.

Change-Id: I66d99e3177956077929ffdde796852d379880963
Releases: master, 2.1
Fixes: #46076