Added DEFAULT attribute to TMPL_VAR tag.

It's very ugly implementation of tag attributes.
Added an autotest for it.