Fix bulk monkeypatch to work with non-insert op_types

This also adds a test for the monkeypatch to make sure it works with the
various bulk op_types.

Fixes #266
Merge pull request #267 from willkg/fix-bulk-monkeypatch

Fix bulk monkeypatch to work with non-insert op_types