Add indexCopy and indexFill implementations