Added (another) layer - now 'node_ref' is between node and node_data, and it decrees whether nodes are identical