Same as #2967 but on 4.1 branch
More pass-by-reference fixes to Illuminate\View\View
Merge pull request #3402 from ebollens/tests-Illuminate_View_View

More pass-by-reference fixes to Illuminate\View\View
Merge pull request #3401 from hannesvdvreken/patch-1

Same as #2967 but on 4.1 branch