Changed component loader to set the name on loaded components.