Fixes #1004

 * Copy template files when making the PHPUnit Phar.
 * Account for the fact that `File_Iterator_Facade::getFilesAsArray()` does not support the `phar://` stream wrapper.
Merge branch '3.7'