Fix local/global delimiter bug between output() and _enclose_value() by
setting global delimiter to local if not null