Detect best type for some static index tables instead of just using uint32_t to reduce total data size.