Update planner tool to set both partitioning param index and partitioning param value,
regardless of whether statement has been compiled to a parameterized plan.

Add the tests which caught this bug.