Fix enum inference
Fix enum inference

The value array optimization made this stop working, because we
can't just count the number of array elements anymore, since they
might contain more arrays.

quicktype/quicktype,quicktype/quicktype,quicktype/quicktype,quicktype/quicktype,quicktype/quicktype