Fail if index plan formula contains duplicate prefixes

* R/index.r: Fail on '~A:colname_1 + A:colname_2'