astar: Recalculate H cost even for Gray nodes.