Use beginKeywords for class-like things in Swift.

Fixes #673.