UCT: Introduce tree_node_parity() macro