deprecate non-arrayref enum and duck_type