This patch makes the usage of `EnumTable`s safer by using `Span`s instead of relying on an empty element at the end. Also the name has been changed from `EnumTable` to `EnumTableEntry` to be more precise. Differential Revision: https://phabricator.services.mozilla.com/D247453