shortest_path_continuous: proper dequeue size; fixed portal skipping in iteration.