Allow parsing index in save and load

Aren't indexes supposed to be objects, not arrays? (nothing wrong with this PR, but why are we defaulting to arrays?)