Added selectVar as a convenience method that avoids redundant
copying in some common cases
Add convenience method to wrap a list of nodes