Related to issue #4543

There is a issue with both documentation and code related to env.

Env cannot be a list it has to be a dict.

Fixed by validation here, or should it be fixed by allowing both:

```
- env:
    VAR: value
```

```
- env:
  - VAR: value
```

?