Add automatic casting of attribute values to strings.