Supports compressed formats, also used in __repr__ (see #30)