Add @nogc unittest for std.range.retro.

To prevent regression of issue 12662.