Ensure nodes of argument relationships are planned correctly

Simplified examples (assumes no squashing):

o MATCH (a)-[r]-(b) WITH r MATCH (p)-[r]-(q) needs to project p, q from r
o MATCH (p)-[r]-(q) WITH p AS a, q AS b, r MATCH (a)-[r]-(b) needs to filter out r where a, b are not start and end nodes resp.