Added a possibility to register an explicit type initializer.