Moved auto path node generation from `PathNodeGen`. It should be at least 20x faster now.