Add indexing on subspec names

I'll do it after merging.