[hmtx] Use curiously recurring template pattern https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern