[VarDebug] caster for Doctrine collections