Adding explicit error handling in CodecJSON when attempting to
decode an element of type A into an array of B's where A cannot be
converted to B.