Return type IDs instead of slugs in ListProcessElements
Refs requests#640
ListProcessElements is suffering from poor performance, and the join on ElementType appears to be an important factor. By returning type IDs instead of type slugs, we can avoid joining on this table entirely, which removes an index scan and a nested loop.