this improves dfa performance and fixes cases when a single global != relation would prevent states from merging