replace DfaMemoryStateImpl.areEquivalent with a more efficient version requiring less eq class traversals (IDEA-123826)
(cherry picked from commit 8718f8b)
IDEA-123959 cannot create a new file
(cherry picked from commit 81ae814)
dfa: reuse free eq class indices
(cherry picked from commit f774ed3)