Fix bug in dependency comparison

This pull request fixes a bug in the dependency order calculation within LocalCompiler. It is not safe to consider two pattern-action pairs as equal whenever they have the same actions because expanding one of them might generate rules with drop as an action that would shadow the others.