Use Lambdas and UFCS in std.algorithm examples.

Better represent Lambda syntax and UFCS in the map/filter/reduce examples in std.algorithm.
Fixes Issue 5359 - isDelegate should work for types and expressions.
Use approxEqual for doubles in some examples.

Replaced a few instances of doubles being compared with == in std.algorithm's examples.  They are now compared with approxEqual.  This should encourage better practices, since floating point numbers can experience rounding errors that would make direct equality checks fail in situations where they are expected to work.
Merge pull request #1190 from chadjoan/patch-4

Use Lambdas and UFCS in std.algorithm examples.
Merge pull request #1192 from AndrejMitrovic/Fix5359

Issue 5359 - isDelegate should work for types and expressions.
Fixup for cycle RangeError invocation

From: #1183 :
Issue 9612: Cycle opSlice should throw when finish > start

Because a RangeError is not actually customizable, and the first argument is actually the file name. The error was producing:
```
core.exception.RangeError@2 > 1(3836): Range violation
```

Now it produces:
```
core.exception.RangeError@std\range.d(3835): Range violation
```
Merge pull request #1196 from monarchdodra/cycleFixup

Fixup for cycle RangeError invocation