Resolve #3568651 "Batch inserts beta4"
Closes #3568651
Rebases the batch-insert work from !33 onto current 1.1.x. !33 stopped applying after 1.1.0-beta4 reworked the same filter code (#3572792, #3557314); this resolves the overlap so beta4's IN/NOT IN + identifier handling and the OR/nested-group + batch-insert changes coexist. Original commit authorship retained. Module unit tests pass (26/26).