Enable indexing string primary keys

Indexed columns appear to work correctly with core 0.82.3.

Depends on #887.

@alazier 
does it not yet work for int? if not please leave the fixme and the old code so we can fix at a later date.