Fix bounds calculation of paths with coords >|9999|.