Fix several bugs with array constant folding