improvements to IndexedPiece.add_index
Merge remote-tracking branch 'origin/visX-devel' into visX-devel