Move handling of "truthy" for flags into writer-method.