[master] don't compare raw and offset pointers with operator==()

probably depending on the boost version this doesn't seem to work always,
according to github issue #39.  even if it works using getOriginNode()
wrapper should be cleaner in that it hides the internal implementation
detail.

should be a trivial fix, so I'm committing this directly.