https://issues.dlang.org/show_bug.cgi?id=13410
--- Comment #36 from Steven Schveighoffer <schvei...@yahoo.com> --- I can reproduce the issue, I was accidentally using bearophile's second D implementation, which does not call byKey/byValue every time through the loop, but instead uses aa.keys. oops! --