Fix specifying index keys as an array ref

- Turn array refs into Tie::IxHash objects before inserting them
- Handle array refs correctly in to_index_string()