To aid in the ongoing discussion of T7541/T7542, simplify the original implementation of T6650 and provide access functions `walk_op_data` and `lookup_op_node_data` for use in generating documentation. A useful benefit is provided by reporting checks on the consistency of op-mode XML definitions during cache generation.