Replace implementation with std.range.chain.

Originally proposed by @monarchdodra.