Slice array of selected nodes, to clone it.
Merge pull request #785 from janslow/master

Clone array of selected nodes in get_selected method