Made derived components' constructors initialize component type.