added instanceof check to cast Twig_Markup objects to string
fixed coding standard
Merge pull request #7 from c33s/master

added instanceof check to cast Twig_Markup objects to string