Lightning Framework Fake Pull Request

I made this PR to myself so that Ioan/Mark can add comments inline if desired.
You never check the result of the cast. If only a RetrieveRepair planner can be used, perhaps the type of rrPlanner_ and planner should be RetrieveRepair*.