Add array_unique functionality.

Requires next changes in Doctrine/Common/Collections/ArrayCollection:
https://github.com/imenem/common/commit/20e428f1a4730aa06d914bf31f606af569fd37cf