Add generic vectorIx
Merge pull request #501 from bgamari/vector

Add generic vectorIx