Change create_index signature to require a name and options map.

Make index type optional when creating an index.