[BUGFIX] Support Doctrine Collections in PersistenceQueryRewriting (Revision 5)

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
Revision-Id: d1a631ad64fe03fca653827489e8f24b2c9951d5