Add test case for array pointer deref
Fix array pointer deref bug