with the changes to the key to support types I think this code is now a bit buggy. The `$1` matches the entire key so `Indicies` is a list of `{type(), index()}` instead of just `index()`. When used below, the `Others` set is now wrong. Adding some quick `io:formats` (results below) you can see how we always get `Indicies =:= Others`. Its easy to change the match but I wonder if it wouldn't be useful to keep the type information around because the `match_delete` afterwards is not deleting anything since `Idx` is `{type(), index()}`. Leaving it as a `delete`, in addition, avoids the full table scan. 

Also, and this is a more a comment for the original code but since we are changing it, we shouldn't assume ordsets are a list. There should be some `to_list` and/or `from_list` calls in here imo.

```
INDICIES: [{riak_kv,159851741583067506678528028578343455274867621888},
           {riak_kv,137015778499772148581595453067151533092743675904}]
PRIMARIES: [0,22835963083295358096932575511191922182123945984,
            45671926166590716193865151022383844364247891968,
            68507889249886074290797726533575766546371837952,
            ...
OTHERS: [{riak_kv,137015778499772148581595453067151533092743675904},
         {riak_kv,159851741583067506678528028578343455274867621888}]
```