extra tests for getElements
more tests edits
unsafe get and set for IndexVector
minor refactoring