Fix std.enums.values

Current implementation fails to handle the following enum

```zig
const E = enum {
  X,
  pub const X = 1;
}
```

because `@field(type, name)` prefers declarations over enum fields.
c89bb3e141PanSashko committed on 1/2/2024, 6:28:55 PM· committed by Veikka Tuominenparente19219f
1 file changedLine totals unavailable