Add indices to VarRef