Add support of gzip in dumper (closes #22)