Small bugfix: deal with duplicate array items.
Small bugfix: deal with duplicate array items.

dbirchak/JSONedit,pezon/JSONedit,tpeng/JSONedit,dpblh/JSONedit,mb21/JSONedit,pezon/JSONedit,mb21/JSONedit,dbirchak/JSONedit,dpblh/JSONedit,tpeng/JSONedit