Die if encode_array is called without a type for array members