component: improve inheritance generation
component: allow #tag to define other attributes