Store enums in smaller integer types when possible.