Fix crash when handling array conversions