compress_design function

Produce a compressed representation of a survey design object