Initial support for registering constructor functions.