CGE2: Handle kCmdSetRef.

Fix Snail during the process.