Add Node copy constructor

This fixes some memory management issues that were occurring, due
to Nodes being freed before they should have been.