Switch to static polymorphism for bitmap indexes.

We don't have to erase the type of a bitmap index through an abstract base
class anymore, because we do that through an actor anyway.
Catch type mismatches in offset queries.

Reported by @sethhall.