Improve error messaging for reserved keywords (bug 6199).