Added support for string types in the ObservationWriter