This way you are traversing the collection twice, since `iterator_to_array` triggers traversal (I guess). So it becomes slower, but should solve the Doctrine collections incompatibility! :+1: 

 What about do it in `Rbac\Traversal\RecursiveRoleIterator::__construct()`?