Assert that ConstantArrays are created with correctly-typed elements.