Do not discard contents of TEMPLATE element

The current serialization approach will silently discard the contents of the `<template>` tag.

The contents of an `<template>` node should be considered *raw text* in that their contents should remain untouched. However, the real children of a `<template>` are in the `content` attribute of the node and traversal should continue within that tree.