Convert arrays to objects

This makes it a little more sane to read, instead of trying to
understand indexes.