Fix a scan() prefix bug with multipart keys.

On a table with (str,str) keys, if you add keys ('a','z') and ('ab','z'),
a scan from ('a',) to ('a',) shouldn't return the ('ab','z') key; fix the
way multipart keys are mapped to strings to avoid this.