Fix NULL value handling in ARRAYs