Improve formula specification of index plan

* R/index.r (xindex): '.' on rhs adds all columns. If no response
  variable, then use row number as document data.
More index plan test cases