Cleanup `arrayReg` and `splice` references.