Support dense:thrift and sparse:thrift output formats

I started to run out of names. Suggestions welcome.