The problem is that array[-1] successfully gets the last item, but array.insert("something", -1) gives an index out of bounds error. For a language derived from Python it's quite unexpected for negative indexes to fail. Thanks for finding it. If you have any other troubles while modding be sure to say something, as I am currently fixing it and writing a more detailed modding guide.