debuginfo: Add special encoding for optimized enums.