Did a pass through the code base to make sure the uses of `Action.idroot` are correct in the context of layered actions. I found and fixed one issue in Grease Pencil v2 -> v3 conversion code where the idroot was being set to a non-zero value without checking if the action was layered or not first. Other than that, I also cleaned up a couple of dodgy-looking things I found. Pull Request: https://projects.blender.org/blender/blender/pulls/133205