BlockManager: unify indexing operations, add more tests for them (sparse doesnt work yet)