Update planner tool to set both partitioning param index and partitionin...

...g param value,

regardless of whether statement has been compiled to a parameterized plan.

Add the tests which caught this bug.