Fixes detection of class template specializations.

Now correctly formats:
template <> class A<int> {} a;