Added support for Doctrine collections, dropped support for PHP 5.3 because of closure's $this binding