geometry validation: don't consider touching lines as intersection (fixes #3851, fixes #7501, fixes #9580)