Fixups to handle different node types

- use '!=' instead of 'is not' for testing nodes in check_lemma4().
  This meant check_lemma4 only worked for integer nodes.  Oops.
- More complete check for face equivalence.