Feature/riak kv pb index dialyzer

2 dialyzer fixes. The change to riak_kv_index.hrl seems right to us (Reid and I) but the riak_kv_index code is so hard to follow we can't prove it.

cc @engelsanchez and @russelldb as people with relevant experience.