Add useful constructors to types and commands.