Support dense:thrift and sparse:thrift output formats

This is sparse, not dense.