Dictionary Coding Issue

Yes, I just ran the code on macOS and it does not suffer from the problem; the trouble only appears on Linux.

(Thankfully macOS does not suffer any harm from the workaround either.)