component: fix selector generation
component: deep clone @events and @tag