This resolves #120220. The `parent_group()` and `parent_node()` functions would be callable on `const` instances but return a non-`const` pointer/reference. This introduces `const` and non-`const` variants of these methods. Pull Request: https://projects.blender.org/blender/blender/pulls/120261