make Indexes more useful

- use them in both reading and writing so we get typed keys and values
  as much as possible