Fix type_of for enums to not lose data in some cases when immediate.