[fix] Serialize contents of <template>; fixes filearts/plunker#50