Add index offset to writer

Prerequisite for ufo-scripts PR [#16](https://github.com/ufo-kit/ufo-scripts/pull/16).