In addition to checking that the policies are equal, also check that the nodes are equal, since the policies may be the same but apply to different nodes. Fixes #170