allow indexing with reused nodes by cloning the node

resolve #4