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

This fixes part of Issue 5555.

Issue URL: https://issues.dlang.org/show_bug.cgi?id=5555