add StringIndex type and fix tests #22