> what about the codes for array and dictionary transformers?

Same thing. All "invalid inputs" should be the same class of error, IMO.