Register type constructors automatically