Add a text type

Fixes #17