Remove duplicate 'X' prefixes in index plan

* R/index.r: Can now handle '~X:. + X:some_col'

* tests/index_plan.R: Add test case