I've recently encountered a model with an instance not in any layers, with a `layer_index` equal to `k_invalid_group_index` / `UINT32_MAX`. I suggest we might need to add `k_invalid_layer_index`, or perhaps add a comment that this could be `UINT32_MAX`.