[NX-19] normalize produces/consumes type order
[NX-19] use enum for level, add ROOT