Add Issue 9578 workaround to `std.algorithm.all`

As a result `all` can now be used with nested predicates.

Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=9578
Merge pull request #1178 from denis-sh/add-Issue-9578-workaround-to-`std.algorithm.all`

Add Issue 9578 workaround to `std.algorithm.all`