Add a (failing) test for Smarty extension.
smarty: Get rid of canonicalize() function.

The previous problem happened because canonicalize() removed the
space from closeClass regexp.

Instead of fixing the function, get rid of it completely. It should
also make module load a bit faster.