Build type slugs from type IDs in init_elements
Follow-up of backend#990 (closed): init_elements must return type slugs by mapping the type IDs to slugs, using the list returned in RetrieveCorpus. This abstracts away the backend optimization from all workers.