Fix usage of replace param in SetTrieArray (bug 6113, r=asherkin).