Adapt to API changes from ufo-core

Accompanying PR for https://github.com/ufo-kit/ufo-core/pull/23