codegen: fix pointer-level of array pointer