Fix bug in ArrayNode's kv-reduce

Due to a missing else branch ArrayNode's kv-reduce implementation some
nodes were skipped when there were gaps in the array.