Add slotted/layered Action support to `get_active_actiongroup()` and `set_active_action_group()`. Note that there is still a bunch of code around that directly manipulates the action group flags, instead of using these functions. That's for another commit to address. This commit also introduces the functions `action_treat_as_legacy()` and `channel_groups_all(action)` utility functions in the `animrig::legacy` namespace. Ref: #123424 Pull Request: https://projects.blender.org/blender/blender/pulls/128084