fixed a bug with incremental cache additions / deletions of indexed
objects (when the same object is added and deleted in one change, the
main cache should not change); modified the test change loader to
reproduce this bug (before, all deletions were loaded only after all
additions)