Fix getDOMFromParameter to accept wether a single node or an array of nides