Add missing setIndex/getIndex methods (Fix #15)