Rewind RecursiveIteratorIterator before use

Fixes #268 and #288.

More info: https://bugs.php.net/bug.php?id=62914

>As a reminder, all iterators have been designed in a way that you need to call rewind before using.