Use `IndexMask` for a selection of nodes, and remove the temporarily added type-agnostic functions for PBVH node data access. This change results in a lot of boilerplate change since all iteration over nodes is affected, and the proper types for nodes need to be used to access their data. Until leaf and inner nodes are split, the `all_leaf_nodes` function has an unfortunate signature now since it needs to return an `IndexMask` as well. That should be simplified in the future. Pull Request: https://projects.blender.org/blender/blender/pulls/126944