Avoid double lookup in opIndex for std.json.

Avoid double-lookup from https://github.com/D-Programming-Language/phobos/pull/2186