remove reference in foreach loop

"Fatal error: Cannot create references to elements of a temporary array expression"
I've got this error during the "composer install" part of the installation of the streams platform.
I've used PHP 5.4.35 to test the alpha, which might be below the requirements. The error is mostly related to the PHP version.

But there also seems to be a bug in PHP 5.5/5.6 versions, see http://stackoverflow.com/questions/24772958/is-there-a-rational-explanation-for-this-php-call-by-value-behavior-or-php-bug for more information.

Since I'm not sure why the variable should be called/used by reference, I've removed the reference and was able to complete the "composer install" successfully.