Fix emitting schema properly in dumper