Ensure that the type of value-objects is a string

This addresses #218.