Fix index_objects

The problem was that the number of objects you could index with
index_objects was tied to the number of things you bulk index at
once. That was certainly problematic.

This tweaks things so they're not connected and provides a
reasonable-ish default.

r?