var2xml: fix for empty Array