Add array indexing for setting. Fix tries.