Detect if data is string, nodelist, node or Jo to make correct Jo.nodes array of nodes