Fixing some node comparisons in the C++ bindings.