Fix emitting yaml arrays