Add extra sanity checks to new ofpath ide resolution code