Refactoring: constructors return structures now.

Instead of getting a pointer to the object to be constructed as first
parameter.