redex: make the depth-based clause ordering smarter
redex: try harder when checking non-terminals

Unfold non-terminals other than the one we're currently
checking, and follow variable references, when normalizing
patterns for nt checking.