[XPCOM] Enhance array handling, now they work inside dicts too