Allow deserialization into `Text`

This is a pretty minor patch, which is a first stab at a full implementation of #136. I will probably have some follow-up questions on how best to approach the rest of #136.