Allow text forms to be constructed with non-string values. Fixes #52.