importNode needs to traverse the tree

Fixes #317