Fix Array constant initializer bug

The type wasn't being set correctly when the array contained only
null literals.