Made List#remove more robust, is able to handle duplicated indexes now.