Cope with invalid slice keys. Closes #20.

Detect bad key slices.

Closes #20.