[ros-diffs] [gdalsnes] 17710: menu: code cleanup, naming changes, simplify refcounting, make internal func take objects and not handles