preserve '$(' literal rendering from Genshi

Preserve Genshi's handling of '$(' as a text literal, since it cannot be a
valid variable sequence.  This simplifies, for example, templates
containing inline scripts with jQuery calls which otherwise have to be
written '$$(...'
Add test case for "$(". Thanks for the fix, Daniel

Closes #2