Fix for issue #8053: raise error on duplicate ID's in one state file

Running the following state:

```
/tmp/file-1:
  file.managed:
    - content: |
        Beep boop.

/tmp/file-1:
  file.touch

```

will now result in this error:

```
local:
    Data failed to compile:
----------
    Rendering SLS "base:duplicates-ids" failed: Conflicting ID "/tmp/file-1"
```

As a bonus, YAML compilation errors are now displayed with the environment and state included — making troubleshooting easier.