[bug] use enum for arrays of enums