Passing `_index` into `params` with `enum` tag
I'm having issue to passing `_index` value into a param linked by an enum.

Sample .ksy script:
https://gist.github.com/cso-idn-player/347e9e6c68fd356d446ea804706e913d

KSC version 0.9 (downloaded from official website):
```
D:\PortablePrograms\kaitai_struct_compiler\0.9\bin>ksc --version
kaitai-struct-compiler 0.9

D:\PortablePrograms\kaitai_struct_compiler\0.9\bin>ksc -d ..\..\__workroom -t python ..\..\__workroom\goldsource_engine_bsp.ksy
/seq/1/type: can't pass argument #0 of type CalcIntType into parameter `type` of type EnumType(List(lump_type),IntMultiType(true,Width4,None))
```

KSC version 0.10-SNAPSHOT-0a3dcbfb (built manually #974):
```
D:\PortablePrograms\kaitai_struct_compiler\0.10-SNAPSHOT\bin>ksc --version
kaitai-struct-compiler 0.10-SNAPSHOT

D:\PortablePrograms\kaitai_struct_compiler\0.10-SNAPSHOT\bin>ksc -d ..\..\__workroom -t python ..\..\__workroom\goldsource_engine_bsp.ksy
../../__workroom/goldsource_engine_bsp.ksy: /seq/1/type: error: can't pass argument #0 of type CalcIntType into parameter `type` of type EnumType(List(lump_type),IntMultiType(true,Width4,None))
../../__workroom/goldsource_engine_bsp.ksy: /types/lump_leafs/types/leaf/seq/6/type: error: can't pass argument #0 of type CalcIntType into parameter `type` of type EnumType(List(ambient_type),IntMultiType(true,Width4,None))
```

But, successfully parsed via Kaitai Web IDE devel:
```
Kaitai WebIDE version: 0.1-SNAPSHOT-[b75f16d](https://github.com/kaitai-io/kaitai_struct_webide/commit/b75f16dd079ca7f779eb12c565569591ae2a1bfc) (2022-03-13 21:05:17, [license](https://raw.githubusercontent.com/kaitai-io/kaitai_struct_webide/master/LICENSE))
Kaitai compiler version: 0.10-SNAPSHOT20220312.201918.860afd0c (2022-03-12T20:19:18+00:00)
```