Updated File::allFiles Method

Since `getIterator` method of Symfony's `Finder` class returns an `AppendIterator` instead of `ArrayIterator`, `iterator_to_array` function doesn't work as expected. Though it wasn't needed anyways because the keys of what's returned from `Finder` is the full path of files, so they won't conflict.