Fix Issue 9616 - SortedRange should support all range kinds
Improved error messages
Fix Issue 9616 - SortedRange should support all range kinds
Improved error messages
review
rebased, fixed conflict
Added the text of the failing unittest
Generalized binaryReverseArgs for more args
Fix "use up capacity" in Appender
Re-implement hasIndirections

Avoids requesting the RepresentationTypeTuple of T unless really needed.

Partially solves 12000:
https://d.puremagic.com/issues/show_bug.cgi?id=12000

Fix Issue 12000 - Forward reference issue with RefCounted
Fix Issue 12434 - std.algorithm.sum of immutable array too

https://d.puremagic.com/issues/show_bug.cgi?id=12434

Simply uses the inference's `Unqual` type as a seed, rather than the straight up result.

Also add some unittesting while at it.
Merge pull request #2071 from monarchdodra/12434

Fix Issue 12434 - std.algorithm.sum of immutable array too
Windows API functions are nothrow
Merge pull request #2073 from WalterBright/winsock-nothrow

Windows API functions are nothrow
Merge pull request #2046 from monarchdodra/appenderUseUp

Fix "use up capacity" in Appender
safe pure nothrow sort and sum
Don't wrap testTerm() with default arguments

The code is clearer without the extra function and with explicit
arguments.
Fix Issue 6998 - std.container.Array destroys...

... class instances
Merge pull request #2057 from Biotronic/master

Generalized binaryReverseArgs for more args
Add unittest for 12540