Support negative indexes for add()