Add workaround for std.algorithm.swap thinking that two Json objects overlap when they don't.