fix ArrayNode -kv-reduce bug reported by Moritz Heidkamp