Add @nogc unittest for std.range.retro.

To prevent regression of issue 12662.
Merge pull request #2529 from quickfur/issue12662

Add @nogc unittest for std.range.retro.