pub fn clean_internal_attrs(node: &mut NodeData)
Clean up internal _role/_lspace/_rspace attributes before serialization.