Add a method to help with filter/field iteration

- Add explanatory comments
warning is vague -- should be more specific: `@warn do not use for iteration over filter indices -- use id_field_end() instead`

same applies below to `n_shared_fields()` and `n_individual_fields()`