Regression test on storing an invalid type into an array.