Adds support for arrays of enums in sub docs