Fix unioning more than 1 query
Merge pull request #2559 from maddhatter/fix-multi-unions

[4.0] Fix unioning more than 1 query
Add support for order by and limit on MySQL update queries.
Cast wheres to array.
Added getRepository method to password broker.
Correct behavior of hasFile on arrays of files.
Added test data to Blade Compiler Test