Make array class with erroneous component also erroneous under AOT.

We cannot encode such array classes in an image, so just prevent
creating them.

Test: test.py
Test: image_test
Bug: 240582357
Change-Id: I2efdf3cc7bc72169713eb9b849824d71145764ac
13 files changed