In the C++ template syntax test, remove some text properties.

We're not interested in category, syntax-table and c-type, so remove
them, especially as Emacs 23 and 24+ set different properties.