Fix issue 12446 - std.parallelism.amap: prefer iteration to indexing