Add valid eq/ne behaviour for RelationalPath

Fixes #906