Positivify local distribution indexes
Add negative indexing tests.