Export unsafeIndex

Fixes #43.