Mark associative array `byKey` and `byValue` `pure nothrow`.

This fixes part of [Issue 5555](https://issues.dlang.org/show_bug.cgi?id=5555).