Better compile error when the user uses `type` instead of `enum`
The following KSY should produce compilation error but it doesn't
```yaml
meta:
  id: type_resolution_bug
seq:
  - id: enumeration
    type: type_resolution_bug::enum
enums:
  enum:
    0: e0
    1: e1
```
The `enum` is not a type -- it is an `enum` and you cannot use it in the `type` key

_(You'll get an error in WebIDE, but it arises at the parse time, not at compile time. If you wrap `seq` into a nested type, WebIDE will silence_
> Parse error: undefined
> Call stack: undefined TypeError: TypeResolutionBug.Enum is not a constructor

_)_

Ideally the compiler should also give you a hint, that you'll probably want to use
```yaml
type: <integer_type>
enum: path::to::enum
```
instead of
```yaml
type: path::to::enum
```