Actually cache rule names.
Actually cache rule names.

The `nameCache` for rule names wasn't actually ever storing any rule names, so the cache hit rate was pretty low. Now rule names are stored in the cache and the hit rate is much better.

I tested this by formatting the swift-protobuf library.
- Before: average 56.7 seconds
- After: average 24.3 seconds

apple/swift-format,apple/swift-format,apple/swift-format