Added better support for class template partial specializations (used in Qt).