Enable indexing string primary keys

Indexed columns appear to work correctly with core 0.82.3.

Depends on #887.

@alazier 
All that's changed is that the crash when adding a row to something with an index was fixed.