Make sure `generateIdentifier` never returns a reserved keyword

Fixes #7.