More efficient and accurate implementation for reindexing the bytecode and jump positions after removing unused current_nodes