fixes #1497 - keywords can be used in restricted references