Add a method to help with filter/field iteration

- Add explanatory comments
this is an implicit signed -> unsigned conversion, since m_header->n[BCF_DT_ID] is an int32_t (for some unknown reason). To prevent any possible issues with Karthik's super-strict compiler, should probably do an explicit cast to uint32_t in the function body.