managed_file upload needs the file module
A couple of typos
Anonymous functions that "use" a variable that was passed by
reference, now also pass that variable by reference.

This was needed to a bug in PHP in versions prior to 5.3.6

https://bugs.php.net/bug.php?id=55425
Merge pull request #2 from nigelgbanks/7.x-code-review

7.x code review