Optimize element array buffer binding in batched rendering.

Now we don't issue as many glBindBuffer calls with element array buffers. This
becomes especially useful if the same element array buffer is re-used for many
objects.