Add a test to demonstrate the problem.
Make SetPlanNode.replaceInput set pointer in other direction, too.
merge MMcM: Make SetPlanNode.replaceInput set pointer in other direction, too.

Merge pull request #1434 from MMcM/sql-layer/sql-set-node-replace-input
https://github.com/FoundationDB/sql-layer/pull/1434