Fix and test for ArrayIndexOutOfBounds in UnparserFilterNew pretty mode