Compact in constructors

Fixes #27.