support array and NodeList as scope