Add JArray and JValue dom elements; return them from Factory.