Fix some possible issues with indexing in Escargot.