Add @nogc unittest for std.range.retro.

To prevent regression of [issue 12662](https://issues.dlang.org/show_bug.cgi?id=12662).