Fix haxe.Template macro parsing 

fix for #2795