Implement Equals() on CustomNodeDefinition